import request from '@/utils/request'

// 查询YmActivity列表
export function listYmActivity(query) {
  return request({
    url: '/api/v1/activityList',
    method: 'get',
    params: query
  })
}

// 查询YmActivity详细
export function getYmActivity(activityId) {
  return request({
    url: '/api/v1/activity/' + activityId,
    method: 'get'
  })
}

// 新增YmActivity
export function addYmActivity(data) {
  return request({
    url: '/api/v1/activity',
    method: 'post',
    data: data
  })
}

// 修改YmActivity
export function updateYmActivity(data) {
  return request({
    url: '/api/v1/activity',
    method: 'put',
    data: data
  })
}

// 删除YmActivity
export function delYmActivity(activityId) {
  return request({
    url: '/api/v1/activity/' + activityId,
    method: 'delete'
  })
}
